package il.ac.braude.sona.gui.forms.myforms;

import il.ac.braude.sona.constants.Resources;
import il.ac.braude.sona.gui.forms.FormFrame;
import il.ac.braude.sona.gui.forms.FormPanel;
import il.ac.braude.sona.gui.forms.questions.QComboBox;
import il.ac.braude.sona.gui.forms.questions.QFileChooser;
import il.ac.braude.sona.gui.forms.questions.QTextArea;
import il.ac.braude.sona.gui.forms.questions.QTextField;
/**
 * Form for creating a change request
 * optional adding files and comments
 * works with the questions system we created
 *
 * @author Ofek Ron
 * @author Avihay Avitan
 * @author Nitzan Inbar
 * @author Sasha Rozenthal
*/
@SuppressWarnings("serial")
public class CreateChangeRequestForm extends FormFrame {
	public CreateChangeRequestForm() {
		super(Resources.Strings.ReqFormTitle, Resources.Strings.OK);
		FormPanel form = new FormPanel();
		form.addQuestion(new QTextField(Resources.Strings.RequestTitleField,true));
		form.addQuestion(new QComboBox(Resources.Strings.RequestChooseSystemField,Resources.Strings.informationSystems));
		form.addQuestion(new QTextArea(Resources.Strings.RequestPresentStateField,true));
		form.addQuestion(new QTextArea(Resources.Strings.RequestSuggestedChangeField,true));
		form.addQuestion(new QTextArea(Resources.Strings.RequestChangeExplanationField,true));
		form.addQuestion(new QTextArea(Resources.Strings.RequestCommentField));
		form.addQuestion(new QFileChooser(Resources.Strings.RequestFile));
		setFormPanel(form);
	}

}
